package com.example.shop.common.bo.maplocation;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
public class Location {
    /**
     * 纬度
     */
    @NotNull
    private Double lat;
    /**
     * 经度
     */
    @NotNull
    private Double lng;

    public Location(double lat, double lng){
        this.lat = lat;
        this.lng = lng;
    }
}
